home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / k3b.postinst < prev    next >
Text File  |  2008-09-20  |  772b  |  39 lines

  1. #!/bin/sh -e
  2.  
  3. case "$1" in
  4.     configure)
  5.  
  6.     # Remove bad files 
  7.     if dpkg --compare-versions "$2" eq "0.10.3-1"; then
  8.         rm -rf /usr/share/applnk/.hidden
  9.         rm -rf /usr/share/applnk/System/k3b.desktop
  10.     fi
  11.     
  12.     if dpkg --compare-versions "$2" lt "0.10.3-1"; then
  13.         rm -rf /usr/share/applnk/System/k3b.desktop
  14.         rm -rf /usr/share/applnk/System/k3bsetup.desktop
  15.     fi
  16.  
  17.     ;;    
  18. abort-upgrade|abort-remove|abort-deconfigure)
  19.     ;;
  20.  
  21. *)
  22.     echo "postinst called with unknown argument \`$1'" >&2
  23.     exit 1
  24.     ;;
  25. esac
  26.  
  27. # dh_installdeb will replace this with shell code automatically
  28. # generated by other debhelper scripts.
  29.  
  30. # Automatically added by dh_installmenu
  31. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  32.     update-menus
  33. fi
  34. # End automatically added section
  35.  
  36.  
  37. exit 0
  38.  
  39.